package zhongjie;

public abstract class Person {//人物类  无论是房东还是购房者，他们都能够发布信息和接受信息
    protected HouseMediator houseMediator;
    public Person(HouseMediator houseMediator) {//关联中介
        this.houseMediator = houseMediator;//获取中介
    }
    public abstract void send(String message);//发布信息
    public abstract void getNotice(String message);//接受信息
}